package com.jic.order.enums;

public enum OrderTagEnum {

    VIP(1, "VIP"),
    JIN_JI(2, "紧急"),
    TE_BIE(3, "特别"),
    GUAN_ZHU(4, "关注"),
    GE_ZI(5, "搁置");

    private Integer code;

    private String message;

    OrderTagEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static OrderTagEnum getByCode(Integer code){
        OrderTagEnum[] values = OrderTagEnum.values();
        for(OrderTagEnum value : values){
            if(value.getCode().equals(code)){
                return value;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
